<%@ tag import="java.util.Date" %>
<%@ variable name-given="question" %>
<% if (request.getParameter("ask")!=null) { 
     long stop = Long.parseLong((String)application.getAttribute("stop"));
     
     int yes = application.getAttribute("yes") == null? 0 : ((Integer)application.getAttribute("yes")).intValue();
     int no = application.getAttribute("no") == null? 0 : ((Integer)application.getAttribute("no")).intValue();
     //int total = application.getAttribute("total") == null? 0 : ((Integer)application.getAttribute("total")).intValue();
     
     if (new Date().getTime()>stop) 
       application.setAttribute("timeout", "");
     else {
       jspContext.setAttribute("question",
                               application.getAttribute("question"));
%>
       <form 
         method="post" 
         action="<%= response.encodeURL(request.getRequestURI()) %>">
       <jsp:doBody/>
       </form>
<%   }
   } %>
